package cn.chenhongchao.zhaobiaopingtai.service.impl;

import cn.chenhongchao.zhaobiaopingtai.entity.Category;
import cn.chenhongchao.zhaobiaopingtai.entity.CategoryExample;
import cn.chenhongchao.zhaobiaopingtai.mapper.CategoryMapper;
import cn.chenhongchao.zhaobiaopingtai.service.ICategoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CategoryServiceImpl implements ICategoryService {

    @Resource
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> getCategoryList() {

        return categoryMapper.selectByExample(new CategoryExample());
    }
}
